package practica1;

public class Funcion2 extends FuncionDosVar{

	public Funcion2(double xMin, double xMax, double yMin, double yMax, double p) {
		super(xMin, xMax, yMin, yMax, p);
		maximo = 38.809;
	}

	public double calcAptitud(double[] f) {
		double x = f[0];
		double y = f[1];
		return 21.5 + x*Math.sin(4*Math.PI*x) + y*Math.sin(20*Math.PI*y);
	}
	
}
